
package com.daguchuangyi.erp_android.model.product;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import java.util.List;

public class Storage implements Parcelable {

    @SerializedName("id")
    @Expose
    private String id;
    @SerializedName("goodsNo")
    @Expose
    private String gNO;
    @SerializedName("identifier")
    @Expose
    private String ident;
    @SerializedName("amountDefect")
    @Expose
    private String amountDefect;
    @SerializedName("unit")
    @Expose
    private String unit;
    @SerializedName("inboundDate")
    @Expose
    private String inboundDate;
    @SerializedName("storageQuantity")
    @Expose
    private String storageQuantity;
    @SerializedName("color")
    @Expose
    private String color;
    @SerializedName("colorNum")
    @Expose
    private String colorNum;
    @SerializedName("warehouses")
    @Expose
    private List<String> warehouses;
    @SerializedName("remark")
    @Expose
    private String remark;
    @SerializedName("shelves")
    @Expose
    private List<String> shelves;
    @SerializedName("warehousesString")
    @Expose
    private String warehousesString;
    @SerializedName("shelvesString")
    @Expose
    private String shelvesString;

    @SerializedName("STNO")
    @Expose
    private String sTNO;
    @SerializedName("PNO")
    @Expose
    private String pNO;
    @SerializedName("number")
    @Expose
    private int number;
    @SerializedName("createdAt")
    @Expose
    private String createdAt;
    @SerializedName("updatedAt")
    @Expose
    private String updatedAt;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getGNO() {
        return gNO;
    }

    public void setgNO(String gNO) {
        this.gNO = gNO;
    }

    public String getIdent() {
        return ident;
    }

    public void setIdent(String ident) {
        this.ident = ident;
    }

    public String getAmountDefect() {
        return amountDefect;
    }

    public void setAmountDefect(String amountDefect) {
        this.amountDefect = amountDefect;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getInboundDate() {
        return inboundDate;
    }

    public void setInboundDate(String inboundDate) {
        this.inboundDate = inboundDate;
    }

    public String getStorageQuantity() {
        return storageQuantity  ;
    }

    public void setStorageQuantity(String storageQuantity) {
        this.storageQuantity = storageQuantity;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public List<String> getWarehouses() {
        return warehouses;
    }

    public void setWarehouses(List<String> warehouses) {
        this.warehouses = warehouses;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public List<String> getShelves() {
        return shelves;
    }

    public void setShelves(List<String> shelves) {
        this.shelves = shelves;
    }

    public String getWarehousesString() {
        return warehousesString;
    }

    public void setWarehousesString(String warehousesString) {
        this.warehousesString = warehousesString;
    }

    public String getShelvesString() {
        return shelvesString;
    }

    public void setShelvesString(String shelvesString) {
        this.shelvesString = shelvesString;
    }

    public String getsTNO() {
        return sTNO;
    }

    public void setsTNO(String sTNO) {
        this.sTNO = sTNO;
    }

    public String getpNO() {
        return pNO;
    }

    public void setpNO(String pNO) {
        this.pNO = pNO;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public String getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(String updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getColorNum() {
        return colorNum;
    }

    public void setColorNum(String colorNum) {
        this.colorNum = colorNum;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.gNO);
        dest.writeString(this.ident);
        dest.writeString(this.amountDefect);
        dest.writeString(this.unit);
        dest.writeString(this.inboundDate);
        dest.writeString(this.storageQuantity);
        dest.writeString(this.color);
        dest.writeString(this.colorNum);
        dest.writeStringList(this.warehouses);
        dest.writeString(this.remark);
        dest.writeStringList(this.shelves);
        dest.writeString(this.warehousesString);
        dest.writeString(this.shelvesString);
        dest.writeString(this.sTNO);
        dest.writeString(this.pNO);
        dest.writeInt(this.number);
        dest.writeString(this.createdAt);
        dest.writeString(this.updatedAt);
    }

    public Storage() {
    }

    protected Storage(Parcel in) {
        this.id = in.readString();
        this.gNO = in.readString();
        this.ident = in.readString();
        this.amountDefect = in.readString();
        this.unit = in.readString();
        this.inboundDate = in.readString();
        this.storageQuantity = in.readString();
        this.color = in.readString();
        this.colorNum = in.readString();
        this.warehouses = in.createStringArrayList();
        this.remark = in.readString();
        this.shelves = in.createStringArrayList();
        this.warehousesString = in.readString();
        this.shelvesString = in.readString();
        this.sTNO = in.readString();
        this.pNO = in.readString();
        this.number = in.readInt();
        this.createdAt = in.readString();
        this.updatedAt = in.readString();
    }

    public static final Parcelable.Creator<Storage> CREATOR = new Parcelable.Creator<Storage>() {
        @Override
        public Storage createFromParcel(Parcel source) {
            return new Storage(source);
        }

        @Override
        public Storage[] newArray(int size) {
            return new Storage[size];
        }
    };
}
